package laravel.mvc.view.blade;

import laravel.mvc.view.blade.create.BladeElement;

/**
 * Created by nuno-rafael-figueiredo on 05-05-2014.
 */
public class If extends BladeElement {
    private final String condition;

    public If(String condition) {
        this.condition = condition;
    }

    @Override
    protected String getEnd() {
        return "@endif";
    }

    protected String getArgs() {
        return String.format(" (%s)", condition);
    }
}
